<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>系统管理-区域列表</title>
    <jsp:include page="../../include/base.jsp"></jsp:include>
	<jsp:include page="../../include/common.jsp"></jsp:include>
  </head>
  <body style="margin:0 auto;padding:0">   
  	<form id="regionForm" method="post">
		<table style="width:100%;font-size:12px;padding-top:14px;" align="center" cellpadding="3">
			<tr>
				<td align="right" width="80">父级区域：</td>
				<td>    
                     <input id="bdrParentTree" name="bdrParent" class="mini-treeselect" multiSelect="false" 
        				valueField="bdrId" parentField="bdrParent" textField="bdrName" 
        				url="<%=path %>/lazyLoadRegionTree.do" width="190" showTreeIcon="false"/>
        			 <div id="topBdrCb" class="mini-checkbox" text="顶级区域" 
        			 	oncheckedchanged="RegionFormHandler.selectedTopBdrCb"></div>
                </td>
			</tr>
			<tr>
				<td align="right">区域名称：</td>
				<td>    
                     <input name="bdrName" class="mini-textbox" required="true" width="260"/>
                </td>
			</tr>
			<tr>
				<td align="right">区域类型：</td>
				<td>    
                     <input id="bdrType" name="bdrType" class="mini-combobox" textField="text"  
		    		 	valueField="value" width="260" onvalidation="validBdiType" 
		    		 	onvaluechanged="RegionFormHandler.bdrTypeValueChanged"/>
                </td>
			</tr>
			<tr>
				<td align="right">代理商名：</td>
				<td>    
                     <input id="bdrAgent" name="bdrAgent" class="mini-combobox" textField="baiName"  
		    		 	valueField="baiId" width="260" onvalidation="validBai" showNullItem="true"/>
                </td>
			</tr>
			<tr>
				<td align="right">区域状态：</td>
				<td>    
		    		 <div id="bdrState" name="bdrState" class="mini-radiobuttonlist" 
		    		 	repeatItems="2" repeatLayout="table" repeatDirection="horizontal"  
		    		 	textField="text" valueField="value">
					</div> 
                </td>
			</tr>
			<tr>
				<td colspan="2" align="center" height="50px;">
					<input class="mini-button" text="保存" iconCls="icon-save" plain="false" 
      					onclick="RegionFormHandler.save"/>&nbsp;&nbsp;
      				<input class="mini-button" text="关闭" iconCls="icon-cancel" plain="false" 
      					onclick="RegionFormHandler.closeMiniWin"/>
				</td>
			</tr>
		</table>
  	</form>
  </body>
  <script src="handler/RegionFormHandler.js" type="text/javascript"></script>
</html>